//
//  ZBGiftOperation.h
//  送礼
//
//  Created by 华惠友 on 2017/9/20.
//  Copyright © 2017年 华惠友. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZBGiftModel.h"
#import "ZBPresentView.h"

typedef void(^GiftFinishedBlock)(BOOL isFinished, NSInteger giftCount);
@interface ZBGiftOperation : NSOperation

@property (nonatomic, strong) ZBGiftModel *giftModel;
@property (nonatomic, strong) ZBPresentView *presentView;
@property(nonatomic, assign) NSInteger giftCount; // 礼物个数


@property (nonatomic, copy) GiftFinishedBlock finishedBlock;
@property (nonatomic, assign) NSInteger giftIndex;


/**
 在哪个视图进行展示
 */
@property (nonatomic, strong) UIView *parentView;




+ (instancetype)animationWithGiftIndex:(NSInteger)giftIndex
                             giftModel:(ZBGiftModel *)giftModel
                         finishedBlock:(GiftFinishedBlock)finishedBlock;

/**
 标签动画
 */
- (void)labelAnimation;

/**
 视图动画
 */
- (void)viewAnimation;
@end
